/*
	This file is part of the JKTest
    Copyright (C) 2008 Royce Y. Feng <ryfeng@gmail.com>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License version 3
    as published by the Free Software Foundation. You may not use, modify
    or distribute this program under any other version of the
    GNU Affero General Public License.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Affero General Public License for more details.

    You should have received a copy of the GNU Affero General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

package JKPanels;

import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.BoxLayout;
import javax.swing.Box;
import javax.swing.BorderFactory;
import java.awt.Font;

/**
 *
 * Class used to contain the title bar of the application
 *
 * @author Royce Feng
 */
public class JKTitlePanel extends JPanel {

    /**
     *
     * Main constructor. Creates a new JLabel with text size 18 and puts it on the Panel
     *
     */
    public JKTitlePanel () {
        super();
        this.setBorder(BorderFactory.createEmptyBorder(
                8, // top
                10, // left
                0, // bottom
                10)); // right
        this.setLayout(new BoxLayout(this,BoxLayout.X_AXIS));
        JLabel label = new JLabel("Kramden Testing Program");
        Font f = new Font("Dialog", Font.PLAIN, 24);
        label.setFont(f);
        this.add(label);
        this.add(Box.createGlue());
        JLabel namelabel = new JLabel("Made by: Royce Feng");
        f = new Font("Dialog", Font.PLAIN, 10);
        namelabel.setFont(f);
        this.add(namelabel);
    }

}
